# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=perl-class-returnvalue
pkgver=0.55
pkgrel=4
pkgdesc="Class::ReturnValue perl module"
url="https://metacpan.org/release/Class-ReturnValue/"
arch="noarch"
license="GPL-2.0 or Artistic"
depends="perl perl-devel-stacktrace"
makedepends="perl-module-install"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JE/JESSE/Class-ReturnValue-$pkgver.tar.gz"

builddir="$srcdir/Class-ReturnValue-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="27aecf99a7db6c943c5300048a4e51aa7646fc83d2a6494f24a68fc76755a9e565099fa830e7f745b76c9ab1b2a8c5ac2a90cf3b22f250245413923bf03b315c  Class-ReturnValue-0.55.tar.gz"
